package com.dayang.oauth2;

import org.apache.shiro.authc.AuthenticationToken;

public class OAuth2Token  implements AuthenticationToken{
	
    public OAuth2Token(String authCode) {
        this.authCode = authCode;
    }

    private String authCode;
    private String principal;
    
    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }
   

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

	@Override
	public Object getCredentials() {
		// TODO Auto-generated method stub
		return authCode;
	}

	@Override
	public String getPrincipal() {
		// TODO Auto-generated method stub
		return principal;
	}
	
	 
}
